<?php


namespace api\modules\v1\controllers;


use Hprose\Yii\Client;
use common\components\RpcClient;
use yii\web\Controller;

class ClientController extends Controller
{
    public $enableCsrfValidation = false;

    public function actionIndex()
    {
        $client = new RpcClient('/v1/default/test');
        return $client->test();
    }
}